import type { AppointformResultParams } from '@/types/appointform'
import { http, ajhttp } from '@/utils/http'


/**
 * 获取平台系统功能配置
*/
export const saveSystemFunctionConfig = (data: {
    enableAppointAutoPass: boolean,
    appointAutoPassStart?: string,
    appointAutoPassEnd?: string,
    appointEffectiveTimespan: number
}) => {
    return ajhttp({
        method: 'POST',
        url: `/system/config/SaveSystemFunctionConfig`,
        data
    })
}

/**
 * 获取平台系统功能配置
*/
export const getSystemFunctionConfig = () => {
    return ajhttp({
        method: 'GET',
        url: `/system/config/SystemFunctionConfig`,
    })
}
